package annotation.bean;

import lombok.Data;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Data
@Scope(scopeName = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
// 容器就应该给Cat再创建一个对象
@Component
public class Cat {


    private String name;


}
